Skip to content

feat(ci): migrate CI/CD from Azure Pipelines to GitHub Actions (#18) - #54

Merged
Starosdev merged 13 commits into
masterfrom
develop
Mar 19, 2026
Merged

Starosdev merged 13 commits into
masterfrom
develop

Conversation

@Starosdev

Copy link
Copy Markdown
Owner

Summary

  • Add GitHub Actions CI workflow (21 jobs) replacing Azure Pipelines
  • Build backend (cross-compile all RIDs), frontend, packages (13 archives), and Windows installer
  • Unit tests on native platforms (mac/win/linux), Alpine Docker, and Postgres 14/15
  • Integration tests on native platforms, Alpine Docker, and Postgres 14/15
  • SonarQube analysis (frontend and backend with coverage) against self-hosted instance
  • Sentry source map uploads and release tracking
  • Discord build notifications via webhook
  • Git tag counter for monotonic build numbers
  • Disable Azure Pipelines triggers (file preserved for reference)
  • Fix pre-existing lint, StyleCop, and webpack issues in test infrastructure

Linked Issues

Closes #18

Test plan

  • CI workflow runs fully green (21/21 jobs passing)
  • Build backend cross-compiles all RIDs (win-x64, win-x86, linux-x64, linux-musl-x64, linux-arm, linux-musl-arm, linux-arm64, linux-musl-arm64, osx-x64, osx-arm64, freebsd-x64)
  • Frontend builds and lints successfully
  • All 13 platform packages created
  • Windows installer builds on Windows runner
  • Unit tests pass on mac, windows, linux, alpine, postgres 14, postgres 15
  • Integration tests pass on mac, windows, linux, alpine, postgres 14, postgres 15
  • SonarQube frontend and backend analysis completes
  • Sentry source maps uploaded and release created
  • Discord notification fires with correct status
  • API docs generation works on develop branch
  • Build counter tag increments correctly

Add monolith GitHub Actions workflow with 17 jobs covering build,
test, packaging, analysis, and notifications. Disable Azure Pipelines
triggers while preserving the file for reference.

Jobs: setup (git tag counter), build-backend (cross-compile all RIDs),
build-frontend, packages (13 archives), lint, unit/integration tests
(native + docker + postgres), Windows installer, Sentry source map
upload, SonarCloud analysis (frontend + backend), API docs generation,
and Discord notifications.
Update sonarcloud-frontend and sonarcloud-backend jobs to use
self-hosted SonarQube at sonar.staros.dev with per-project tokens.
Remove sonar.organization parameter (not used in SonarQube).
Use DISCORD_WEBHOOK_ID for constructing the webhook URL and
DISCORD_CHANNEL_ID for the actual channel reference.
Fix env context not available at job-level env (use literal values
for MAJORVERSION and INNOVERSION). Pass github.head_ref through env
var to prevent script injection risk.
Replace blanket .github/** paths-ignore with specific exclusions for
labeler, label-actions, and lock workflows. The CI workflow itself
must be able to trigger runs when updated.
- Fix SA1513 StyleCop error in VideoFileInfoReader.cs (missing blank
  line after closing brace)
- Bump Node.js from 20.11.1 to 20.19.0 (jsdom@28.1.0 requires it)
- Fix SonarScanner on Windows: Git Bash mangles /k: and /d: flags,
  switch to pwsh shell for sonarscanner begin/end steps
- Remove dorny/test-reporter (requires git checkout, test jobs only
  download artifacts). Test results still uploaded as artifacts.
- Exclude .test.tsx files from webpack build (TS errors from Vitest
  matchers like toBeInTheDocument)
- Fix SonarScanner pwsh env var syntax (use $env:VAR instead of $VAR)
- Add explicit boolean values for JSX boolean attributes (ESLint
  react/jsx-boolean-value rule)
- Fix prettier formatting in Icon.test.tsx
- Add test infrastructure files to .eslintignore (vitest.config.ts,
  test/setup.ts, test/cssModuleMock.ts are outside tsconfig scope)
)

- Exclude *.test.ts/tsx from tsconfig.json so fork-ts-checker-webpack-plugin
  does not type-check Vitest test files during production build
- Fix SonarScanner begin command: use pwsh backtick continuations
  instead of YAML folding, use /v: for project version per scanner
  recommendation
…int (#18)

- Make PackageWindows() gracefully skip the net8.0-windows overlay
  when building on Linux (WinForms tray app only builds on Windows)
- Add *.test.ts and *.test.tsx to .eslintignore (test files use
  Vitest types not included in the main tsconfig project)
- Installer job now builds backend on Windows directly (needs
  net8.0-windows TFM for Radarr.exe WinForms tray app, which only
  builds on Windows)
- Update sentry-cli source map command from deprecated
  'releases files upload-sourcemaps' to 'sourcemaps upload'
sentry-cli releases set-commits --auto needs a git repo to
associate commits with the release.
@Starosdev Starosdev added the enhancement New feature or request label Mar 19, 2026
@github-actions github-actions Bot added Area: UI and removed enhancement New feature or request labels Mar 19, 2026
@Starosdev Starosdev linked an issue Mar 19, 2026 that may be closed by this pull request
6 tasks
@Starosdev
Starosdev merged commit b0b0b45 into master Mar 19, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate CI/CD from Azure Pipelines to GitHub Actions

1 participant